using SheLife.Domain.Common;

namespace SheLife.Domain.Entities
{
    /// <summary>
    /// 用户角色实体类
    /// </summary>
    public class UserRole : BaseEntity
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 角色ID
        /// </summary>
        public Guid RoleId { get; set; }

        /// <summary>
        /// 用户导航属性
        /// </summary>
        public virtual SystemUser? User { get; set; }

        /// <summary>
        /// 角色导航属性
        /// </summary>
        public virtual SystemRole? Role { get; set; }
    }
}